/*
 * @Author: your name
 * @Date: 2022-04-24 16:42:51
 * @LastEditTime: 2022-05-25 11:13:21
 * @LastEditors: liuhanlu liuhanlu@163.com
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \rongeduo-admin\src\api\vip.js
 */
import request from '@/utils/request'
//查询全部
export function list(data) {
    return request({
        url: '/inviolableRights/list',
        method: 'get',
        params: data
    })
}
// 添加权益
export function add(data) {
    return request({
        url: '/inviolableRights/add',
        method: 'post',
        data: data
    })
}
// 展示对接权益
export function showAllRights(data) {
    return request({
        url: '/inviolableRights/showAllRights',
        method: 'get',
        params: data
    })
}
// 编辑权益
export function update(data) {
    return request({
        url: '/inviolableRights/update',
        method: 'post',
        data: data
    })
}
// 删除标签
export function deleteById(data) {
    return request({
      url: '/inviolableRights/deleteById',
      method: 'get',
      params: data
    })
  }

// 领取状态和上架状态修改
export function updateStatus(data) {
    return request({
      url: '/inviolableRights/updateStatus',
      method: 'get',
      params: data
    })
  }